home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Time on Page.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
731b
|
41 lines
[SUBJECT]
Description=Show the time user have been viewing the page!
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="Javascript">
;<!-- Begin
;pageOpen = new Date();
;function bye() {
;pageClose = new Date();
;minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
;seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
;time = (seconds + (minutes * 60));
;if (time == 1) {
;time = (time + " second");
;}
;else {
;time = (time + " seconds");
; }
;alert('`label_before` ' + time + ' `label_after`');
;}
;// End -->
;</script>
;
[BODY_TAG]
;OnUnload="bye()"
[`label_before`]
Kind=S
Value=It has been
[`label_after`]
Kind=S
Value=Please stay longer next time!